import { IPSSysTestDataItem } from './ipssys-test-data-item';
import { PSModelObjectImpl } from '../psmodel-object-impl';

export class PSSysTestDataItemImpl extends PSModelObjectImpl implements IPSSysTestDataItem {
  get codeName(): string {
    return this.M.codeName;
  }

  get dynaModelFilePath(): string {
    return this.M.dynaModelFilePath;
  }

  get memo(): string {
    return this.M.memo;
  }

  get name(): string {
    return this.M.name;
  }

  get stdDataType(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 {
    return this.M.stdDataType;
  }

  get userCat(): string {
    return this.M.userCat;
  }

  get userTag(): string {
    return this.M.userTag;
  }

  get userTag2(): string {
    return this.M.userTag2;
  }

  get userTag3(): string {
    return this.M.userTag3;
  }

  get userTag4(): string {
    return this.M.userTag4;
  }

  get value(): string {
    return this.M.value;
  }

  get valueType(): 'VALUE' | 'VALUERANGE' | 'NULLVALUE' | 'PICKUPVALUE' | 'CODELISTVALUE' {
    return this.M.valueType;
  }

  get nullValue(): boolean {
    return this.M.nullValue;
  }

  get cls(): string {
    return 'PSSysTestDataItemImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'testing.IPSSysTestDataItem') return true;
    return super.instanceof(cls);
  }
}
